package com.example.zhihu.presenter;

import com.example.zhihu.base.BasePresenter;
import com.example.zhihu.bean.FuliBean;
import com.example.zhihu.model.FuliCallBack;
import com.example.zhihu.model.FuliModel;
import com.example.zhihu.view.FuliView;

public class FuliPresenter extends BasePresenter<FuliView> implements FuliCallBack {
    private FuliModel model;
    @Override
    protected void initModel() {
        this.model=new FuliModel();
        addModel(model);
    }
    public void getdata(){
        model.addFuliMolodel(this);
    };
    @Override
    public void onSuccess(FuliBean data) {
        mview.onSuccess(data);
    }

    @Override
    public void onFali(String error) {
        mview.onFali(error);
    }
}
